package com.example.user.mapper;


import com.example.user.entity.CommunityActivity;
import com.example.user.entity.Favorite;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper

public interface ActivityDetailInfoMapper {


    List<CommunityActivity> selectDetail();

    List<CommunityActivity> selectActivityById(@Param("activityId") Integer activityId);

    int addFavorite(@Param("favorite") Favorite favorite);

    Favorite selectFavoriteById(@Param("activityId") Integer activityId);
}
